<?php
/*
Template Name: Contact Form
*/
?>

<?php get_header(); ?>
  <div id="main">								
		<div id="maintext">
      <h2><?php the_title();?></h2><!-- Page Title Here -->
		  <?php display_subtitle();?>

      <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
      <?php the_content();?>
      <?php $success_msg  = get_option('centita_success_msg');?>
      <div id="emailSuccess"><?php echo ($success_msg) ? $success_msg : __("Your message has been sent successfully. Thank you!",'vilisya');?></div>
      <div id="maincontactform">
        <form action="#" id="contactform"> 
        <div>
        <label><?php echo __('Name ','vilisya');?></label><input type="text" name="name" class="textfield" id="name" value="" /><span class="require"></span>
        <label><?php echo __('Subject ','vilisya');?></label><input type="text" name="subject" class="textfield" id="subject" value="" /><span class="require"></span>
        <label><?php echo __('E-mail ','vilisya');?></label><input type="text" name="email" class="textfield" id="email" value="" /><span class="require"></span>  
        <label><?php echo __('Message ','vilisya');?></label><textarea name="message" id="message" class="textarea" cols="2" rows="2"></textarea><span class="require"></span><br />
        <br />
        <button type="submit" class="input-submit" id="buttonsend" ></button>
        <input type="hidden" name="siteurl" id="siteurl" value="<?php echo get_template_directory_uri();?>" />
        <span class="loading" style="display: none;"><?php echo __('Please wait..','vilisya');?></span>
        </div>
        </form> 
      </div> 	
		  <?php endwhile; endif; ?>
   </div><!-- end of maintext -->
</div><!-- end of main -->
<?php get_sidebar();?>
<?php get_footer();?>	